package com.example.upload.dto.user;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author lsx
 * @description: TODO
 * @date 2024年06月07日 15:45
 * @Version: 1.0
 */
@Data
public class RegisterDto {
    @NotBlank(message = "用户名不能为空")
    private String userName;
    @NotBlank(message = "用户手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号长度为11位")
    private String tell;
    @NotBlank(message = "用户密码不能为空")
    private String password;
}
